package com.example.springboot_jxc_0511.jxc.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author gongxl
 * @since 2021-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Sale implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 销售单价
     */
    private BigDecimal price;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 总价
     */
    private BigDecimal totalprice;

    /**
     * 销售日期
     */
    private Date saledate;

    /**
     * 销售ID
     */
    private Integer userid;

    /**
     * 商品ID
     */
    private Integer productid;

    @TableField(exist = false)
    private String realname;

    @TableField(exist = false)
    private String productname;

}
